<%--
  Created by IntelliJ IDEA.
  User: leon
  Date: 2017/2/14
  Time: 下午6:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../include/taglib.jsp" %>
<div class="row">
    <div class="col-md-12">
        <div class="form-panel">
            <h4 class="mb"><a href="javascript:jumpMenu('${ctx}/index/usual')"> 运营平台 </a><i class="fa fa-angle-right"></i>
                <a href="javascript:jumpMenu('${ctx}/systemLog/page')">系统操作日志</a>
            </h4>
            <form class="form-inline" role="form" id="sourceForm" method="post">
                <div class="form-group">
                    <label class="sr-only"></label>
                    <input type="text" class="form-control" name="keyWords" placeholder="请输入关键字...">
                    <div class="form-group">
                        <label class="sr-only"></label>
                        <select name="temple" class="form-control" onchange="$('#searchSubmit').click();">
                            <option value="">- ALL -</option>
                            <option value="1">按操作人</option>
                            <option value="2">按参数</option>
                            <option value="3">按备注</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="sr-only"></label>
                    <select name="type" class="form-control" onchange="$('#searchSubmit').click();">
                        <option value="">- 全部类型 -</option>
                        <option value="add">新增</option>
                        <option value="del">删除</option>
                        <option value="upd">修改</option>
                        <option value="login">登录</option>
                        <option value="logout">登出</option>
                    </select>
                </div>
                <i class="fa fa-long-arrow-up"></i>
                <b>增加时间：</b>
                <input class="Wdate" type="text" name="startTime" id="startTime"
                       size="22" readonly
                       onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                <b>至：</b>
                <input class="Wdate" type="text" name="endTime" id="endTime"
                       size="22" readonly
                       onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                <div class="pull-right">
                    <button type="button" class="btn btn-theme03"
                            onclick="document.getElementById('sourceForm').reset();$('#searchSubmit').click();">清除
                    </button>
                    <button type="button" class="btn btn-theme" id="searchSubmit"
                            onclick="queryList('${ctx}/systemLog/list', 'sourceForm', '_list')">搜 索
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>

<%--<div class="row mt">
    <div class="col-md-12">
        <div class="form-panel">
        </div>
    </div>
</div>--%>

<div class="row list">
    <div class="col-md-12">
        <div class="content-panel" id="_list">
        </div><!-- /content-panel -->
    </div><!-- /col-md-12 -->
</div>


<script type="text/javascript">
    $(function () {
        $("#searchSubmit").click();
        $("#sourceForm input").keydown(function (e) {
            if (e.which == 13) {//.which属性判断按下的是哪个键，回车键的键位序号为13
                $("#searchSubmit").click();//触发搜索按钮的点击事件
                return false;
            }
        });
    });
</script>